const mongoose = require('mongoose');
const { Schema } = mongoose;
//公告对象
const noticeSchame = new Schema({
  id: String,//编号
  title: String,//标题
  content: String,//内容
  author: String,//作者
  pushTime: Date,//发布时间
});

const noticeModel = mongoose.model('notice',noticeSchame);

module.exports = noticeModel;